<form method="post" name="frm_SelStation" onSubmit="return false;" action="{$apm.baseurl}search/{$form_act}/jyoken/" >
	<p class="searchAttTxt01">※5ヵ所まで選択できます。</p>

		<ul id="tab">
		{* 沿線毎にループ *}
		{foreach from=$Mapping item=v name="ensenLoop"}
			{if $smarty.foreach.ensenLoop.iteration == 1}
				<li class="select" style="cursor: pointer">
			{else}
				<li style="cursor: pointer">
			{/if}
				<span>{$v.ENSEN_NAME}</span>
			</li>
		{/foreach}
		</ul>

		<!-- selectDetailBlock01 -->
		{foreach from=$Mapping item=v name="ensenLoop"}
			<div class="content_wrap">
				<h3>{$v.ENSEN_NAME}</h3>
			{assign var="cnt" value=$v.EKI_DATA|@count}
			{foreach from=$v.EKI_DATA item=eki name="ekiLoop"}
				{if $smarty.foreach.ekiLoop.iteration % 3 == 1}
					{if $smarty.foreach.ekiLoop.iteration+3 <= $cnt}
					<ul class="checkBoxList">
					{else}
					<ul class="checkBoxList last">
					{/if}
				{/if}
					<li>
						<label>
						<input name="StCd[]" type="checkbox" id="selectCity{$eki.EKI_CD}" value="{$eki.EKI_CD}"
							{foreach from=$research_data.ReStCd key="key" item="restcd" name="loopName"}
								{if $restcd == $eki.EKI_CD}checked{/if}
							{/foreach} />
						{$eki.EKI_NAME}
						</label>
					</li>
				{if $smarty.foreach.ekiLoop.iteration % 3 == 0 || $smarty.foreach.ekiLoop.last}
					</ul>
				{/if}
			{/foreach}
			</div>
		{/foreach}
		<!-- /selectDetailBlock01 -->

		<!-- searchBtnBlock02_easy -->
		<div id="searchBtnBlock02_easy">
			<div class="btnBlock">
				<p>
					<a href="javascript:SelEki(5);">
						<img src="/images/search/common/btn_next_easy04.gif" alt="次へ進む" width="264" height="59" class="rollImg" />
					</a>
				</p>
			</div>
		</div>
		<!-- /searchBtnBlock02_easy -->

	<div id="hiddenval">
	{$hiddenTag}
	</div>
</form>

{* 沿線のタブ切り替え *}
{literal}
<script type="text/javascript">
<!--
$(function() {
	$("#tab li").click(function() {
		var num = $("#tab li").index(this);
		$(".content_wrap").addClass('disnon');
		$(".content_wrap").eq(num).removeClass('disnon');
		$("#tab li").removeClass('select');
		$(this).addClass('select')
	});
});
-->
</script>
{/literal}